package com.yusi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yusi
 * @since 2022-01-06
 */
@TableName("flight_mana")
@ApiModel(value = "FlightMana对象", description = "")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FlightMana implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("飞机种类")
    private Integer airId;

    @ApiModelProperty("该飞机编号")
    private String airName;

    @ApiModelProperty("经济舱票数")
    private Integer economy;

    @ApiModelProperty("商务舱票数")
    private Integer business;

    @ApiModelProperty("头等舱票数")
    private Integer firstClass;

    @ApiModelProperty("是否启用")
    private Integer isenabled;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("飞机种类")
    @TableField(exist = false)
    private Airplane airplane;
}
